package com.taotao.inventory.mapper;

import java.util.List;

import com.taotao.inventory.domain.PurchaseDetails;
import com.taotao.inventory.domain.PurchaseOrder;
import com.taotao.inventory.domain.TSkuInfo;
import com.taotao.inventory.domain.vo.PurchaseDemandVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 库存预警Mapper接口
 *
 * @author byf
 * @date 2025-01-14
 */
@Mapper
public interface TSkuInfoMapper
{
    /**
     * 查询库存预警列表
     *
     * @param tSkuInfo 库存预警
     * @return 库存预警集合
     */
    public List<TSkuInfo> selectTSkuInfoList(TSkuInfo tSkuInfo);

    void insertPurchaseDemand(PurchaseDemandVo purchaseDemandVo);

    List<PurchaseDemandVo> purchaseDemand(Long skuId);

    List<PurchaseDemandVo> purchaseStatus(PurchaseDemandVo purchaseDemandVo);

    List<PurchaseDemandVo> selectSuppilerById(Long supplierId);

    void orderAdd(PurchaseOrder purchaseOrder);

    void DetailsAdd(PurchaseDetails purchaseDetails);

    void DemandSkuId(Long skuId);

    void applyId(@Param("id") Long id, @Param("userId") Long userId);
}
